﻿using Common.BaseLibrary.Domain;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DepartmentWork.Migrator.Data
{
    /// <summary>
    /// 工作表
    /// </summary>
    [Serializable]
    public class PROJECT_DESK_WORK : IEntity
    {
        /// <summary>
        /// pk(工作id)
        /// </summary>
        [DisplayName("发布工作ID"), Required, Key]
        public Guid DESKWORK_ID { get; set; }


        /// <summary>
        /// 工作编号
        /// </summary>
        [DisplayName("工作编号"), Required]
        public string DESKWORK_NO { get; set; }



        /// <summary>
        /// 工作名称
        /// </summary>
        [DisplayName("工作名称"), StringLength(20), Required]
        public string DESKWORK_NAME { get; set; }

        /// <summary>
        /// 工作负责人
        /// </summary>
        [DisplayName("负责人"), StringLength(20), Required]
        public string DESKWORK_PRINCIPAL { get; set; }

        /// <summary>
        /// 工作负责人ID
        /// </summary>
        [DisplayName("负责人ID"), Required]
        public Guid DESKWORK_PRINCIPAL_ID { get; set; }

        /// <summary>
        /// 工作发布人ID
        /// </summary>
        [DisplayName("发布人姓名"), Required]
        public Guid DESKWORK_FOUNDER_ID { get; set; }


        /// <summary>
        /// 工作描述(内容)
        /// </summary>
        [DisplayName("工作内容"), Required]
        public string DESKWORK_DESCRIBE { get; set; }


        /// <summary>
        /// 工作创建时间
        /// </summary>
        [DisplayName("工作创建时间"), Required]
        public DateTime DESKWORK_CREATETIME { get; set; }


        /// <summary>
        /// 发布人
        /// </summary>
        [DisplayName("发布人姓名"), StringLength(20), Required]
        public string DESKWORK_FOUNDER { get; set; }

    


        /// <summary>
        /// 工作状态
        /// 0是未完成
        /// 1是完成
        /// </summary> 
        [DisplayName("工作状态"), StringLength(20), Required]
        public string DESKWORK_STATUS { get; set; }

        /// <summary>
        /// 工作结束时间
        /// </summary>
        [DisplayName("结束时间")]
        public DateTime DESKWORK_OVERTIME { get; set; }


        /// <summary>
        /// 完成期限
        /// </summary>
        [DisplayName("完成期限")]
        public DateTime DESKWORK_DEADINE { get; set; }




         /// <summary>
         /// 操作状态
         /// 1 提交
         /// 2 驳回
         /// </summary>
        [DisplayName("操作状态"),Required]
        public int DESKWORK_EDITOR { get; set; }



        /// <summary>
        /// 审核人ID
        /// </summary>
       [DisplayName("审核人ID")]
        public Guid DESKWORK_AUDITOR_ID { get; set; }



       /// <summary>
       /// 项目隶属的空间
       /// </summary>
       [DisplayName("项目隶属的空间"), Required]
       public Guid TEAMSPACE_ID { get; set; }


    }
}
